package com.patent.service.impl;

import com.patent.dao.PaymentRecordMapper;
import com.patent.domain.po.PaymentRecord;
import com.patent.service.PaymentRecordService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("paymentRecordService")
@Transactional
public class PaymentRecordServiceImpl implements PaymentRecordService {

	private static final Logger log = LoggerFactory.getLogger(PaymentRecordServiceImpl.class);

	@Resource(name="paymentRecordMapper")
	private PaymentRecordMapper paymentRecordMapper;

	@Override
	public int updateByPrimaryKeySelective(PaymentRecord record) {
		return paymentRecordMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public PaymentRecord selectRecordByPatentId(Integer patentId) {
		return paymentRecordMapper.selectRecordByPatentId(patentId);
	}
}
